Skip to main content

ModifyDiskAttribute

Description

the call ModifyDiskAttribute modify the name, description, release with instance and other attributes of a block store.

Request Method

POST

Request Path

/apsara/route/Ecs/ModifyDiskAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DescriptionBODYstringNoThis is a description example.disk description. 2 to 256 English or Chinese characters in length and cannot start with http:// or https.
DiskIds.NBODYrepeatlistNod-bp198f7xn673w2rw****multiple disk IDs of the details to be modified. The value range of n is 0~100. description DiskId and DiskIds.N two parameters cannot be called at the same time, please choose a value according to your needs.
regionIdBODYstringYesNo sample value for this parameter.region id
DeleteWithInstanceBODYbooleanNofalsewhether the disk is released with the instance. Default value: None, None means that the current value will not be changed. /p> p data-tag = "p" class = "p"> an error will be reported when the parameter DeleteWithInstance is set to false in the following two cases. when the type (category) of the disk is the site (ephemeral). when the type (category) of the disk is a common cloud disk (cloud) and cannot be uninstalled (Portable = false).
DeleteAutoSnapshotBODYbooleanNofalsewhen deleting a disk, whether to delete its automatic snapshot at the same time. Default value: None, None means that the current value will not be changed.
EnableAutoSnapshotBODYbooleanNotrueif you have created an automatic snapshot policy, whether it is applied to the disk. Default value: none, none means that the current value will not be changed.
DiskNameBODYstringNotest-DiskNamedisk name. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or hyphens (-).
versionBODYstringNo2016-01-01version of api
DiskIdBODYstringNod-bp198f7xn673w2rw****the disk ID of the details to be modified. description DiskId and DiskIds.N two parameters cannot be called at the same time, please choose a value according to your needs.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}